/*
 * MutableComboBoxModel.java  0.4.0 / Oct 26, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swing;

/**
 * Mutable ComboBox Model.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public interface MutableComboBoxModel extends ComboBoxModel {

  /**
   * Adds specified object to the model.
   *
   * @param object the object to be added
   */
  public void addElement(Object object);

  /**
   * Removes specified object from the model.
   *
   * @param object the object to be removed
   */
  public void removeElement(Object object);

  /**
   * Inserts specified object at the specified index.
   *
   * @param object the object to insert
   * @param index the object index
   */
  public void insertElementAt(Object object, int index);

  /**
   * Removes object specified by index.
   *
   * @param index the object index
   */
  public void removeElementAt(int index);

}
